package logic

import (
	"fruit/actor/iactor"
	"fruit/tools/proto/proto_out/logic"
	"sync"

	"google.golang.org/protobuf/proto"
)

type LogicServer struct {
	*iactor.Actor
}

var once sync.Once
var fruit_actor *LogicServer

func GetLogicServer() *LogicServer {
	once.Do(func() {
		fruit_actor = new(LogicServer)
		// fruit_actor.init()
	})
	return fruit_actor
}

func (my *LogicServer) InitIActor(...interface{}) interface{} {
	return nil
}

func (my *LogicServer) Test3([]byte) proto.Message {
	// fmt.Println("succ")
	return &logic.TestResp{
		Status: "Pong",
	}
}
